package cn.clx.ymcc.dto;

import cn.clx.ymcc.util.AssertUtil;
import lombok.Data;
import sun.awt.SunHints;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

/**
 * 前端传递的注册对象
 */
@Data
public class RegisterDto {
    //电话
    @Pattern(regexp = AssertUtil.PHONE_CUSTOM)
    private String mobile;

    private String password;
    //图形验证码
    @NotEmpty(message = "参数不能为空")
    private String imageCode;
    //uuid
    @NotEmpty(message = "参数不能为空")
    private String imageCodeKey;
    //短信验证码
    private String smsCode;
    //注册的渠道
    private String regChannel;
    //邀请码
    private String code;

}
